package com.aspose.cells;

class zrh {
   private boolean a;
   private String b;
   private int c;
   private int d;
   private com.aspose.cells.a.d.zfq e;

   public zrh(String var1, int var2, int var3, boolean var4, zrh var5) {
      this.b = var1;
      this.c = var2;
      this.d = var3;
      this.a = var4;
      if (var5 != null && com.aspose.cells.b.a.zv.b(var1, var5.b) && var3 == var5.d) {
         this.e = var5.e;
      }

   }

   public zrh(String var1, int var2, int var3, com.aspose.cells.a.d.zfq var4) {
      this.b = var1;
      this.c = var2;
      this.d = var3;
      this.a = false;
      this.e = var4;
   }

   public boolean a(zrh var1) {
      return this == var1 || this.c == var1.c && this.d == var1.d && com.aspose.cells.b.a.zv.b(this.b, var1.b);
   }

   public boolean a(String var1, int var2, int var3) {
      return var2 == this.c && var3 == this.d && com.aspose.cells.b.a.zv.b(var1, this.b);
   }

   public boolean a(String var1, int var2) {
      return var2 == this.d && com.aspose.cells.b.a.zv.b(var1, this.b);
   }

   public int a(String var1) {
      if (this.e != null) {
         return com.aspose.cells.a.c.zn.a(var1, this.e, this.c);
      } else if (this.a) {
         this.e = com.aspose.cells.a.c.zn.a(this.b, this.d);
         if (this.e == null) {
            if (com.aspose.cells.a.c.zl.a()) {
               com.aspose.cells.a.c.zl.a("Cannot find font: " + this.b);
            }

            return var1.length();
         } else {
            return com.aspose.cells.a.c.zn.a(var1, this.e, this.c);
         }
      } else {
         return com.aspose.cells.a.c.zn.a(var1, this.b, (float)this.c, this.d);
      }
   }

   public float a(char var1) {
      if (this.e != null) {
         return com.aspose.cells.a.c.zn.a(var1, this.e, this.c);
      } else if (this.a) {
         this.e = com.aspose.cells.a.c.zn.a(this.b, this.d);
         if (this.e == null) {
            if (com.aspose.cells.a.c.zl.a()) {
               com.aspose.cells.a.c.zl.a("Cannot find font: " + this.b);
            }

            return 1.0F;
         } else {
            return com.aspose.cells.a.c.zn.a(var1, this.e, this.c);
         }
      } else {
         return com.aspose.cells.a.c.zn.a(var1, this.b, this.c, this.d);
      }
   }

   public String a() {
      return this.b;
   }

   public int b() {
      return this.c;
   }

   public int c() {
      return this.d;
   }

   public com.aspose.cells.a.d.zfq d() {
      return this.e;
   }
}
